/* eslint-disable no-undef */
import request from '@/utils/request'

export default {
  getTeacherListPage(current, limit, teacherQuery) {
    return request({
      url: `/serviceEdu/teacher/pageTeacherCondition/${current}/${limit}`,
      method: 'post',
      data: teacherQuery
    })
  },
  removeById(id) {
    return request({
      url: `/serviceEdu/teacher/deleteTeacherById/${id}`,
      method: 'delete'
    })
  },
  saveTeacher(teacher) {
    return request({
      url: `/serviceEdu/teacher/save`,
      method: 'post',
      data: teacher
    })
  },

  getTeacherInfo(id) {
    return request({
      url: `/serviceEdu/teacher/getById/${id}`,
      method: 'get'
    })
  },
  updateTeacherInfo(teacher) {
    return request({
      url: `/serviceEdu/teacher/updateById`,
      method: 'post',
      data: teacher

    })
  }

}
